package dabs.engine.plant;

import dabs.engine.messaging.NotificationHandler;

public abstract class Converter extends ComponentPart {
	private static final long serialVersionUID = -7189082825177144345L;
	
	private int conversionRate;
	
	public Converter(NotificationHandler mailBox, String name, int conversionRate, int capacity, int outRate) {
		super(mailBox, name, capacity, outRate);
		this.conversionRate = conversionRate;
	}
	
	public abstract void convert();
	
	public int getConversionRate() { return conversionRate; }
	public void setConversionRate(int conversionRate) { this.conversionRate = conversionRate; }
}
